package com.groupbuying.settleproducer.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.groupbuying.settleproducer.dao.SettleRefundDao;
import com.groupbuying.settleproducer.domain.SettleRefundDO;
import com.groupbuying.settleproducer.service.SettleRefundSqlService;



@Service
public class SettleRefundSqlServiceImpl implements SettleRefundSqlService {

	private Logger logger = LoggerFactory.getLogger(SettleRefundSqlServiceImpl.class);

	@Autowired
	private SettleRefundDao settleRefundDao;

	@Override
	public SettleRefundDO get(String refundId){
		return settleRefundDao.get(refundId);
	}
	
	@Override
	public List<SettleRefundDO> list(Map<String, Object> map){
		return settleRefundDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return settleRefundDao.count(map);
	}
	
	@Override
	public int save(SettleRefundDO settleRefund){
		return settleRefundDao.save(settleRefund);
	}
	
	@Override
	public int update(SettleRefundDO settleRefund){
		return settleRefundDao.update(settleRefund);
	}
	
	@Override
	public int remove(String refundId){
		return settleRefundDao.remove(refundId);
	}
	
	@Override
	public int batchRemove(String[] refundIds){
		return settleRefundDao.batchRemove(refundIds);
	}
	
}
